package com.eascs.p2p.common.entity;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the p2p_loanee_refund_plan database table.
 * 
 */
@Entity
@Table(name="p2p_loanee_refund_plan")
@NamedQuery(name="LoaneeRefundPlanEntity.findAll", query="SELECT l FROM LoaneeRefundPlanEntity l")
public class LoaneeRefundPlanEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private String id;

	@Temporal(TemporalType.DATE)
	@Column(name="actual_refund_time")
	private Date actualRefundTime;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="create_time")
	private Date createTime;

	private String features;

	@Column(name="is_overdue")
	private int isOverdue;

	private int issue;

	private String loanee;

	@Column(name="must_refund_interest")
	private BigDecimal mustRefundInterest;

	@Column(name="must_refund_principal")
	private BigDecimal mustRefundPrincipal;

	@Temporal(TemporalType.DATE)
	@Column(name="must_refund_time")
	private Date mustRefundTime;

	@Column(name="must_refund_total")
	private BigDecimal mustRefundTotal;

	@Column(name="object_id")
	private String objectId;

	@Column(name="refund_status")
	private int refundStatus;

	@Column(name="refund_type")
	private int refundType;

	@Column(name="total_issues")
	private int totalIssues;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="update_time")
	private Date updateTime;

	private int version;

	public LoaneeRefundPlanEntity() {
	}

	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Date getActualRefundTime() {
		return this.actualRefundTime;
	}

	public void setActualRefundTime(Date actualRefundTime) {
		this.actualRefundTime = actualRefundTime;
	}

	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getFeatures() {
		return this.features;
	}

	public void setFeatures(String features) {
		this.features = features;
	}

public int getIsOverdue() {
		return this.isOverdue;
	}
	
public int getIssue() {
		return this.issue;
	}

	public void setIssue(int issue) {
		this.issue = issue;
	}

	public String getLoanee() {
		return this.loanee;
	}

	public void setLoanee(String loanee) {
		this.loanee = loanee;
	}

	public BigDecimal getMustRefundInterest() {
		return this.mustRefundInterest;
	}

	public void setMustRefundInterest(BigDecimal mustRefundInterest) {
		this.mustRefundInterest = mustRefundInterest;
	}

	public BigDecimal getMustRefundPrincipal() {
		return this.mustRefundPrincipal;
	}

	public void setMustRefundPrincipal(BigDecimal mustRefundPrincipal) {
		this.mustRefundPrincipal = mustRefundPrincipal;
	}

	public Date getMustRefundTime() {
		return this.mustRefundTime;
	}

	public void setMustRefundTime(Date mustRefundTime) {
		this.mustRefundTime = mustRefundTime;
	}

	public BigDecimal getMustRefundTotal() {
		return this.mustRefundTotal;
	}

	public void setMustRefundTotal(BigDecimal mustRefundTotal) {
		this.mustRefundTotal = mustRefundTotal;
	}

	public String getObjectId() {
		return this.objectId;
	}

	public void setObjectId(String objectId) {
		this.objectId = objectId;
	}

	
public int getRefundStatus() {
		return this.refundStatus;

	}
	public void setRefundStatus(int refundStatus) {
		this.refundStatus = refundStatus;
	}

	public void setIsOverdue(int isOverdue) {
		this.isOverdue = isOverdue;
	}

	public int getRefundType() {
		return this.refundType;
	}

	public void setRefundType(int refundType) {
		this.refundType = refundType;
	}

	public int getTotalIssues() {
		return this.totalIssues;
	}

	public void setTotalIssues(int totalIssues) {
		this.totalIssues = totalIssues;
	}

	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public int getVersion() {
		return this.version;
	}

	public void setVersion(int version) {
		this.version = version;
	}

}